will do).
>
> Position options:
> * relative placement as floats, i.e. \placefigure
> * absolute placement on layers, i.e. \setlayer
> * relative corrections with \offset (also within floats)
>
> Hraban
> _
vate mail) how you make your documents (a MWE will do).
Position options:
* relative placement as floats, i.e. \placefigure
* absolute placement on layers, i.e. \setlayer
* relative corrections with \offset (also within floats)
Hr
Am 08.09.23 um 19:37 schrieb Henning Hraban Ramm:
But it uses its own page size, I don’t understand why. I need the
bleed/trim area.
If I use \setlayer in the setup, the content gets placed on the next
page, i.e. under the text.
\structureuservariable{image} in the setup gets the value
, because I can set the
background, and \externalfigure starts at (0,0).
But it uses its own page size, I don’t understand why. I need the
bleed/trim area.
If I use \setlayer in the setup, the content gets placed on the next
page, i.e. under the text.
\structureuservariable{image} in the setup
better define start and stop separately?
\def\startMyFigure[#1]{
% e.g. use utilities.parsers.settings_to_hash(#1)
}
\def\stopMyFigure{}
Probably I’ll need to catch the content (\externalfigure, might become
more) and use it in a \setlayer – so perhaps something like
\definebuffer[MyFigure
\startMyFigure[#1]{
% e.g. use utilities.parsers.settings_to_hash(#1)
}
\def\stopMyFigure{}
Probably I’ll need to catch the content (\externalfigure, might become
more) and use it in a \setlayer – so perhaps something like
\definebuffer[MyFigure]
\define\stopMyFigure{%
\setlayer[page]{\getMyFigure
,
footer=0.75cm,
]
\definelayer[test3]
%[x=.5\paperwidth, y=.5\paperheight]
[x=.5\textwidth, y=.5\textheight]
%\setupbackgrounds[page]
\setupbackgrounds[text]
[background=test3]
\starttext
\setlayer[test3][location={middle}]
\framed[offset=overlay
,
]
\setuppagenumbering[state=start,alternative=doublesided,location=margin]
\useMPlibrary [dum]
\starttext
%%% Me %%%
\showframe [text] [text]
\definelayer[test3]
\setlayer[test3][]
\centerbox{
{\startcombination[nx=3,ny=1,distance=15mm,after=,location=middle]
{\externalfigure[dummy
gt; >
> > > [backspace=2.5cm,
> > >
> > > topspace=1cm,
> > >
> > > height=28cm,
> > >
> > > width=17cm,
> > >
> > > header=0cm,
> > >
> > > footer=0.75cm,
> > >
> > > ]
&
> > [backspace=2.5cm,
> >
> > topspace=1cm,
> >
> > height=28cm,
> >
> > width=17cm,
> >
> > header=0cm,
> >
> > footer=0.75cm,
> >
> > ]
> >
> > \useMPlibrary [dum]
> >
> > \start
grounds[page]
\setupbackgrounds[text]
[background=test3]
\starttext
\setlayer[test3][location={middle}]
\framed[offset=overlay]{{\startcombination[nx=3,ny=1,distance=15mm]
{\externalfigure[cow][width=15mm]}{}
\rotate[rotation=90]{\externalfigure[cow
,
height=28cm,
width=17cm,
header=0cm,
footer=0.75cm,
]
\useMPlibrary [dum]
\starttext
\definelayer[test3]
\setlayer[test3][x=2cm,y=15cm]
{\startcombination[nx=3,ny=1,distance=15mm,after=,location=middle]
{\externalfigure[dummy]}{}
\rotate[rotation=90]{\externalfigure[dummy
,
]
\useMPlibrary [dum]
\starttext
\definelayer[test3]
\setlayer[test3][x=2cm,y=15cm]
{\startcombination[nx=3,ny=1,distance=15mm,after=,location=middle]
{\externalfigure[dummy]}{}
\rotate[rotation=90]{\externalfigure[dummy]}{}
{\externalfigure[dummy][]}{}
\stopcombination}
\flushlayer[test3
[CONTENT]
\definemeasure[SpineWidth][2mm + (0.135mm * \noffigurepages/2)]
You can try
\expanded{\definemeasure[SpineWidth][...]}
That works so far, if I output \measure{SpineWidth} it shows the right
size (~42pt).
But if I use this measure in
\setlayer[width=\measure{SpineWidth}]{...}
it’s
)]
That works so far, if I output \measure{SpineWidth} it shows the right
size (~42pt).
But if I use this measure in
\setlayer[width=\measure{SpineWidth}]{...}
it’s very small.
I guess \noffigurepages is 1 at that point (from another image) and I’d
need to expand it first.
Am I right
tions are shown.
Abstract elements are expanded so only real metamodel elements are shown. Uses
the Mastering ArchiMate 9-colour scheme to assist learning and quick reading.}]
\starttext
\setupindenting[none]
\setupindenting[no]
\definelayer[coremodel][width=\textwidth,height=\textheight]
\set
> 1. I want the baseline grid to evenly (vertically) divide the text
>> > area, but my code produces a smaller height of the first line and an
>> > additional space at the bottom.
>>
>> You did not set footerdistance to zero. So, that takes up some space.
&g
> 2. The number of columns is 21.5, that is the first column
is 0.5 units
> wide and the rest are 1 unit wide.
I believe that columns has to be an integer. Why do you want
fractional columns? Columns are useful because you can say:
\setlayer[name][line=2,column=3]{}
1 unit wide.
>
> I believe that columns has to be an integer. Why do you want fractional
> columns? Columns are useful because you can say:
>
> \setlayer[name][line=2,column=3]{}
>
> for absolute positioning of layers. So, you can always use:
>
> \setlayer[name][line=2,
st are 1 unit wide.
I believe that columns has to be an integer. Why do you want fractional
columns? Columns are useful because you can say:
\setlayer[name][line=2,column=3]{}
for absolute positioning of layers. So, you can always use:
\setlayer[name][line=2,column=3,x=0.5\measured{ba
[background={color,myOL1}]{\getshapetext}\hfill
\FrameColumn[background={color,myOL2}]{\getshapetext}\hfill
\FrameColumn{empty}}
% and the pull quote
\setlayer
[test]
[hoffset=\backspace+0.3\textwidth-\PQhalfwith+0.2pt,
voffset=\dimexpr(\topspace+\headerheight+\headerdistance+\posA
I often use \ininner{\rotate[location=fit]{Copyright notice}}, but
it’s
a hassle to get the placement right, don’t use it within the caption.
Using \setlayer is most reliable.
Hraban
__
_
If your question is of interes
already written something they could share?
I often use \ininner{\rotate[location=fit]{Copyright notice}}, but it’s
a hassle to get the placement right, don’t use it within the caption.
Using \setlayer is most reliable.
Hraban
in {\it Italic} and {\bf bold} letters:
\bgroup
\it This is what Italic letters look like here.
\egroup
\bgroup
\bf This is what Bold letters look like here.
\egroup
\stopblockquote
\stoptext
\definelayer [testlayer]
\setupbackgrounds [text] [text] [background=testlayer]
%\setupbackground
of "if such
and such then \setlayer 1,2,3"
I think that should be easy. Suppose you have images
{chap-cover-1.jpg, chap-cover-2.jpg, ... chap-cover-10.jpg}
each of which appear at the ends of their respective chapters, then the
following achieves what you want (once you point ConTeXt to
in a pics directory, so I'd point
\setupexternalfigures to that). I wonder if there is a way to list them
so that they get called in order as chapters proceed. A kind of "if such
and such then \setlayer 1,2,3"
I think that should be easy. Suppose you have images
{chap-cover-1.jpg, chap-co
led in order as chapters proceed. A kind of "if such
> and such then \setlayer 1,2,3"
I think that should be easy. Suppose you have images
{chap-cover-1.jpg, chap-cover-2.jpg, ... chap-cover-10.jpg}
each of which appear at the ends of their respective chapters, then the
following ach
in a pics directory, so I'd point
\setupexternalfigures to that). I wonder if there is a way to list them
so that they get called in order as chapters proceed. A kind of "if such
and such then \setlayer 1,2,3"
Julian
On 7/3/22 16:38, śrīrāma wrote:
On Monday, March 7, 2022 9
[x=0mm,
y=0mm,
width=\paperwidth,
height=\paperheight,repeat=yes]
\setlayer
[mill]
{\externalfigure[mill][width=\paperwidth]}
\startsetups chapter:before
\doifoddpageelse{}
{\pushbackground[page]
\setupbackgrounds[page][background=mill]
\p
perwidth,height=\paperheight,repeat=yes]
\setlayer[mill]{\externalfigure[mill][width=\paperwidth]}
\startsetups chapter:before
\doifoddpageelse{}
{\pushbackground[page]
\setupbackgrounds[page][background=mill]
\page[empty]
\popbackground}
\stopsetups
\startsetup
in
bodymatter:
\startbodymatter
\definelayer[mylayer] % name of the layer
[x=0mm, y=0mm, % from upper left corner of paper
width=\paperwidth,height=\paperheight] % let the layer cover the full paper
\setlayer[mylayer]
[hoffset=2.5cm, voffset=3cm]
{\externalfigure[Chapter1.jpg][width=.9
not working for me.
Here is my MWE:
\define[]\logofile{an_image_file.png} % Here defining the variable with the
filename to use.
\definelayer[stillimage]
\setlayer[stillimage]{\externalfigure[\logofile]} % Here trying to use the
\logofile macro.
\setupbackgrounds[page][background
May be \useexternalfigure is your friend instead of your \define[]\logofile{},
which allows you to give a symbolic name of the logo-file. This symbolic name
you can use then in the setlayer construct.
Willi
> On 18 Dec 2021, at 10:52, skyhorse--- via ntg-context
> wrote:
>
>
[]\logofile{an_image_file.png} % Here defining the variable with the
filename to use.
\definelayer[stillimage]
\setlayer[stillimage]{\externalfigure[\logofile]} % Here trying to use the
\logofile macro.
\setupbackgrounds[page][background=stillimage]
\starttext
\input knuth
\stoptext
What's
ly one or the
> > other, but not both.
> >
> >
> > \definefontfamily [mwetest] [sans] [Liberation Sans]
> > \setupbodyfont [mwe,ss,12pt]
> > \definelayer[mwe][repeat=yes, preset=lefttop, hoffset=.125in,
> > voffset=.125in]
>
can't get both to print out as Chancery.
Only one or the
other, but not both.
\definefontfamily [mwetest] [sans] [Liberation Sans]
\setupbodyfont [mwe,ss,12pt]
\definelayer[mwe][repeat=yes, preset=lefttop, hoffset=.125in, voffset=.125in]
\setlayer[mwe
or the
other, but not both.
\definefontfamily [mwetest] [sans] [Liberation Sans]
\setupbodyfont [mwe,ss,12pt]
\definelayer[mwe][repeat=yes, preset=lefttop, hoffset=.125in, voffset=.125in]
\setlayer[mwe] { \switchtobodyfont[chancery,8pt] \hskip 5mm Chancery
}]
\definelayer[butterfly]
[x=0mm, y=0mm,repeat=yes,width=\paperwidth, height=\paperheight]
\setlayer[butterfly]
[hoffset=.99\textwidth, voffset=1cm]
{\externalfigure[bfly.jpg][width=1.5cm]}
\setupbackgrounds[page][background=butterfly]
The last line adds backgrounds to every page. And without
>
> \setupbackgrounds
> [rightpage]
> [background=butterfly]
>
> \startchapter[title={Chapter title}]
> \definelayer[butterfly]
> [x=0mm, y=0mm,repeat=yes,width=\paperwidth, height=\paperheight]
> \setlayer[butterfly]
> [hoffset=.99\textwidth, voffset
something).
\startbodymatter
\setupbackgrounds
[rightpage]
[background=butterfly]
\startchapter[title={Chapter title}]
\definelayer[butterfly]
[x=0mm, y=0mm,repeat=yes,width=\paperwidth, height=\paperheight]
\setlayer[butterfly]
[hoffset=.99\textwidth, voffset=1cm]
{\externalfigure
,
height=\paperheight,
location={left,top},
x=120mm,y=220mm,
doublesided=yes]
\startsetups layer
\setlayer[pagenumber][even]{\pagenumber}
\stopsetups
\setupbackgrounds[page][setups=layer,background={pagenumber}]
\starttext
~\page~\page~\page
\stoptext
And it works, but only for the left
,
doublesided=yes]
\startsetups layer
\setlayer[pagenumber][even]{\pagenumber}
\stopsetups
\setupbackgrounds[page][setups=layer,background={pagenumber}]
\starttext
~\page~\page~\page
\stoptext
And it works, but only for the left (even) page. On the right page I
want to place the pagenumber
]
\setupbackgrounds[text][background={bg},state=start]
\starttext
\starttransparent[light]%
\externalfigure[hacker]%
\stoptransparent
\setlayer[bg][
hoffset=5mm,
voffset=5mm,
]{
\starttransparent[light]%
\externalfigure[hacker]%
\stoptransparent
}
\stoptext
'''
The layer stuff is not "minimal&qu
\starttransparent[light]%
\externalfigure[hacker]%
\stoptransparent
\setlayer[bg][
hoffset=5mm,
voffset=5mm,
]{
\starttransparent[light]%
\externalfigure[hacker]%
\stoptransparent
}
\stoptext
'''
The layer stuff is not "minimal", but I wanted to check if "multiply&q
I think I tangled myself...
- I’ve a macro defined in Lua that uses fullpagemakeup and \setlayer to place
an image on an empty page.
- This macro is called from within a postponing environment.
- I check figures.current().status.fullname if the image is found ...
- and then read xsize and ysize
juh via ntg-context schrieb am 26.08.2021 um 14:46:
Hi,
this sample shows that the image in a layer in header disappears if showframe is
set.
\setupexternalfigures[location=default]
\definelayer[Cow]
[x=0, y=0]
\setlayer[Cow]
[x=10em, y=0mm]
{\externalfigure[cow][height=\lineheight
Hi,
this sample shows that the image in a layer in header disappears if showframe is
set.
\setupexternalfigures[location=default]
\definelayer[Cow]
[x=0, y=0]
\setlayer[Cow]
[x=10em, y=0mm]
{\externalfigure[cow][height=\lineheight]}
\setupbackgrounds[header][background=Cow]
\showframe
]
\definelayer
[MyLogo]
[doublesided=yes,
width=\paperwidth,
height=\paperheight,
repeat=yes]
\setupbackgrounds [page] [background=MyLogo]
\setuppagenumbering [alternative=doublesided]
\setlayer
[MyLogo]
[left]
[preset=leftbottom,
x=\dimexpr\cutspace-\rightmargindistance
=\paperwidth,
height=\paperheight,
repeat=yes]
\setupbackgrounds[page][background=MyLogo]
\setlayer
[MyLogo]
[hoffset=\dimexpr\textwidth+\backspace+\rightmargindistance\relax,
voffset=\dimexpr\topspace+\textheight+\footerheight\relax]
{\externalfigure[dum][width=\rightmarginwidth
[page][background={foreground, hi}]
\starttext
\startTEXpage
\framed[frame=off, offset=none]
{\setlayer[hi]{\color[red]{hi}}
\externalfigure[cow-brown]\framedheight}
\stopTEXpage
\stoptext
In this case, \getfiguredimensions would work, but I don’t know how to
deal with a pure text
{foreground, hi}]
\starttext
\startTEXpage
\framed[frame=off, offset=none]
{\setlayer[hi]{\color[red]{hi}}
\externalfigure[cow-brown]\framedheight}
\stopTEXpage
\stoptext
In this case, \getfiguredimensions would work, but I don’t know how to
deal with a pure text box.
BTW, is there a
On 8/17/2021 5:56 AM, Pablo Rodriguez via ntg-context wrote:
Dear list,
I have the following sample:
\definelayer[hi][x=.5\paperwidth, y=.5\paperheight]
\setupbackgrounds[page][background=hi]
\starttext
\setlayer[hi]{hi}
\startTEXpage[offset=10em]
\null
\stopTEXpage
Dear list,
I have the following sample:
\definelayer[hi][x=.5\paperwidth, y=.5\paperheight]
\setupbackgrounds[page][background=hi]
\starttext
\setlayer[hi]{hi}
\startTEXpage[offset=10em]
\null
\stopTEXpage
\stoptext
I don’t get the layer in the TEXpage.
How could I get
, may cause surprising interactions when
around normal typsetting content. Putting the whatsit insertion in a
page background is a way to keep it away. "back-swf.mkiv" suggests:
\setupbackgrounds[page][background=resources]
\setlayer[resources]{\placerenderingwindow[foo][foo]}
\setupbackgrounds[page][background=resources]
> \setlayer[resources]{\placerenderingwindow[audiowindow][myaudiorendering]}
>
> \goto{PLAY SOUND}[StartRendering{myaudiorendering}]
>
> This is basically the example from "/back-swf.mkiv". Works in Acrobat.
> And one can use eit
th=0sp, height=0sp]
\definelayer[resources]
\setupbackgrounds[page][background=resources]
\setlayer[resources]{\placerenderingwindow[audiowindow][myaudiorendering]}
\goto{PLAY SOUND}[StartRendering{myaudiorendering}]
This is basically the example from "/back-swf.mkiv". W
itsquare xyscaled (1mm,1mm) withcolor blue ;
> > \stopreusableMPgraphic
> >
> > \definelayer[foldingmarkslayer][width=\paperwidth,height=\paperheight]
> > \setlayer[foldingmarkslayer][y=101mm,x=11mm]{\reuseMPgraphic{fold}}
> >
> > \setupbackgrounds [page][b
;
\stopreusableMPgraphic
\definelayer[foldingmarkslayer][width=\paperwidth,height=\paperheight]
\setlayer[foldingmarkslayer][y=101mm,x=11mm]{\reuseMPgraphic{fold}}
\setupbackgrounds [page][background=foldingmarkslayer]
\starttext
Test
\stoptext
The error I get:
tex error on line 6 in file ./test.tex: Use
=\paperwidth,height=\paperheight]
\setlayer[foldingmarkslayer][y=101mm,x=11mm]{\reuseMPgraphic{fold}}
\setupbackgrounds [page][background=foldingmarkslayer]
\starttext
Test
\stoptext
The error I get:
tex error on line 6 in file ./test.tex: Use of \meta_usempgraphic_nop doesn't
match its
Huseyin Özoguz schrieb am 06.05.2021 um 12:48:
Hello context-community,
I have an image as a layer and want it to place on every page of a book
with some offset.
My minexample:
\setlayer[mybg]
[hoffset=2cm, voffset=0.2cm, doublesided=yes] {\framed[frame=off,
width=2cm,
height=1cm
Hello context-community,
I have an image as a layer and want it to place on every page of a book
with some offset.
My minexample:
\setlayer[mybg]
[hoffset=2cm, voffset=0.2cm, doublesided=yes] {\framed[frame=off,
width=2cm,
height=1cm]{\externalfigure[bilder_bearbeitet_png/32.png][width
x=0mm, y=0mm, % from upper left corner of paper
width=\paperwidth, height=.5\paperheight] % let the
layer cover
the full paper
\setlayer[blessings] % name of the layer
[hoffset=.09\textwidth, voffset=1.7cm] % placement
(from upper
cond is bottom right.
>>
>> \definelayer[blessings] % name of the layer
>> [x=0mm, y=0mm, % from upper left corner of paper
>> width=\paperwidth, height=.5\paperheight] % let the layer cover
>> the full paper
>> \setlayer[blessings]
paper
\setlayer[blessings] % name of the layer
[hoffset=.09\textwidth, voffset=1.7cm] % placement (from upper
left corner of the layer)
{\externalfigure[bless.eps][width=3cm]} % the actual
contents of
the layer
\setupbackgrounds[page][background=ble
y=0mm, % from upper left corner of paper
> width=\paperwidth, height=.5\paperheight] % let the layer cover
> the full paper
> \setlayer[blessings]% name of the layer
> [hoffset=.09\textwidth, voffset=1.7cm] % placement (from upper
> left corner of the layer)
> {\
the layer cover
the full paper
\setlayer[blessings] % name of the layer
[hoffset=.09\textwidth, voffset=1.7cm] % placement (from upper
left corner of the layer)
{\externalfigure[bless.eps][width=3cm]} % the actual contents of
the layer
\setupbackgrounds[page][background=blessings
On 1/19/2021 5:46 PM, Pablo Rodriguez wrote:
Dear list,
I have the following sample:
\definelayer[layer]
[doublesided=yes]
\setlayer[layer]
{layer}
\setupbackgrounds[text]
[background={layer}]
\starttext
\null
\stoptext
Simply defining a doublesided layer
Dear list,
I have the following sample:
\definelayer[layer]
[doublesided=yes]
\setlayer[layer]
{layer}
\setupbackgrounds[text]
[background={layer}]
\starttext
\null
\stoptext
Simply defining a doublesided layer breaks compilation in LMTX. It works
fine with MkIV. I’m
background := unitsquare xscaled dimA yscaled dimB ;
fill pathbackground
withshademethod "linear"
withshadedirection(0,1)
withshadecolors (red,blue);
\stopuseMPgraphic
%--
\definelayer[MyBackgroundLayer]
\setlayer[MyBackgroundLayer]{\
====
> %==
>
> \starttext
>
> %--
>
> \startuseMPgraphic{MyBackgroundGraphic}
> path pathbackground ;
> numeric dim
mA yscaled dimB ;
fill pathbackground
withshademethod "linear"
withshadedirection(0,1)
withshadecolors (red,blue);
\stopuseMPgraphic
%--
\definelayer[MyBackgroundLayer]
\setlayer[MyBackgroundLayer]{\useMPgraphic{MyBackgroundGraphic}}
\s
> > \definelayer[mybg]
> > [
> > repeat=yes,
> > x=0mm, y=0mm,
> > width=\paperwidth, height=\paperheight,
> > ]
> >
> \setlayer[mybg]{\externalfigure[cow][width=\paperwidth,height=\paperheight]}
> > \setupbackgrounds[page][background=mybg,state=re
Jairo A. del Rio schrieb am 03.12.2020 um 18:14:
Hi everyone. The following
\setuppagenumbering[state=stop]
\definelayer[mybg]
[
repeat=yes,
x=0mm, y=0mm,
width=\paperwidth, height=\paperheight,
]
\setlayer[mybg]{\externalfigure[cow][width=\paperwidth,height=\paperheight]}
\setupbackgrounds
Hi everyone. The following
\setuppagenumbering[state=stop]
\definelayer[mybg]
[
repeat=yes,
x=0mm, y=0mm,
width=\paperwidth, height=\paperheight,
]
\setlayer[mybg]{\externalfigure[cow][width=\paperwidth,height=\paperheight]}
\setupbackgrounds[page][background=mybg,state=repeat]
\setupindenting
default width than *\framed*. Perhaps I missed it.)
New overwrought example:
\definelayer [HRule]
[x=0mm,y=0pt,width=\textwidth,height=\textheight]
\setlayer [HRule]
[hoffset=0pt,voffset=10em]
{\blackrule[color=green,height=1pt,width=10cm
state=stop]
\definelayer[BG][
x=0mm,y=0mm,
width=\LWidth,height=\LHeight,
state=repeat]
\setupbackgrounds[page][background=BG,]
\setlayerframed[BG][
frame=on,
framecolor=yellow,
width=\LWidth,height=\LHeight,
align=flushleft,
]{\strut}
\setlayer[BG][
preset=rightbottom,
hoffse
s > defining > unable to define 'IBMPlexSans-regular' as
'ibmplex-14pt-ss-tf-0--0'
lua error > lua error on line 70 in file ./labels3.tex:
function call [801]:
...-64/tex/texmf-context/tex/context/base/mkiv/node-syn.lua:435: attempt to
index a nil value (upvalue
> \setupbackgrounds[page][background=pgnumber]
> \starttext
> \placelist[section][alternative=d]
> \dorecurse{16}{\section{Section}}
> \pagenumber/\lastpagenumber
> \setlayer[pgnumber]
> {\comment{\pagenumber}}
> \stoptext
>
> Could anyone confirm the iss
]
\starttext
\placelist[section][alternative=d]
\dorecurse{16}{\section{Section}}
\pagenumber/\lastpagenumber
\setlayer[pgnumber]
{\comment{\pagenumber}}
\stoptext
Could anyone confirm the issue?
\pagenumber is only reliable headers/footer texts or page backgrounds
]
\dorecurse{16}{\section{Section}}
\pagenumber/\lastpagenumber
\setlayer[pgnumber]
{\comment{\pagenumber}}
\stoptext
Could anyone confirm the issue?
Many thanks for your help,
Pablo
--
http://www.ousia.tk
empty,
pagestate=start,
]
\def\doublepagefig{\dodoubleempty\doDoublePagefig}
\def\doDoublePagefig[#1][#2]#3#4{
\startfullpagemakeup
\setlayer[bgpicleft]{\textreference[#1]{}%
\clip[
hoffset=0mm, voffset=0mm,
Would something like this work?
\setupbackgrounds[page][
background={BookIllustrationLayer},
]
\definelayer[BookIllustrationLayer][
width=\paperwidth,
height=.5\paperheight,
y=.5\paperheight,
position=no,
repeat=no,
]
\setlayer[BookIllustrationLayer]{%
\clip[x=\doifelseoddpage
=\paperheight] % let the layer cover the full paper
\startuniqueMPgraphic{blueShade}
draw lmt_shade [
path = fullsquare xyscaled(PaperWidth,PaperHeight),
direction = "up",
alternative = "linear",
colors = { "red", "blue" },
];
\stopuniqueMPgraphic
\s
On Tue, Mar 24, 2020 at 07:29:26PM +0100, Wolfgang Schuster wrote:
>
> When you need the height for the layer offset you can use \dowithnextbox
> because it hides \setbox etc.
>
> \definelayer[TextBox]
>
> \showframe[text][text]
>
> \starttext
>
> \dowithnextb
r offset you can use \dowithnextbox
because it hides \setbox etc.
\definelayer[TextBox]
\showframe[text][text]
\starttext
\dowithnextbox
{\setlayer
[TextBox]
[x=\the\dimexpr(\textwidth -\nextboxwd)/3\relax,
y=\the\dimexpr(\textheight-\nextboxht)/3\relax]
{\flushnextbox}}
\hbox
On Thu, 13 Feb 2020 09:19:10 +0100
juh wrote:
> Hi all,
>
> I am a little bit confused as I never had this problem, although I often use
> backgrounds and layers.
>
> \definelayer[bg:hs2020-mond]
> [x=0, y=0, width=\paperwidth, height=\paperheight]
>
> \setlayer[
Hi all,
I am a little bit confused as I never had this problem, although I often use
backgrounds and layers.
\definelayer[bg:hs2020-mond]
[x=0, y=0, width=\paperwidth, height=\paperheight]
\setlayer[bg:hs2020-mond]
[x=0mm, y=0mm]
{\externalfigure[background.jpg][height=\paperwidth]}
Ususally I
), even though all have state=stop, and never
show up again where I set state=start.
I wanted to use it like
\define[2]\Anzeige{%
\setupcolumnsetareatext[ad#1][{\externalfigure[#2][width=\overlaywidth]}]
\setupcolumnsetarea[ad#1][state=start]
}
I also tried to just reserve the space with c
Dear list,
I have the following sample:
\setupexternalfigures[location=default]
\starttext
\definelayer[abc][hoffset=1cm, voffset=5cm]
\setlayer[abc]{\externalfigure[cow.pdf][frame=on]}
\definelayer[xyz][hoffset=12cm, voffset=5cm]
\setlayer[xyz]{\externalfigure
, as well as using \startuseMPgraphic for direct
compilation from ConTeXt.
Many thanks for all the help.
>>> SNIPPET <<<
\startbuffer[tblcard]
\strut
\definelayer[tblplacecard]
\setlayer[tblplacecard][x=-1em,y=1em]{%
\externalfigure[figures/apollonius/apo
,
topspace=6mm,
header=8mm,
footer=6mm,
]
\showframe
\definelayer[TA]
[x=16mm, y=14mm,
width=\makeupwidth, height=\makeupheight]
\setupbackgrounds[page][background=TA]
\def\Square{\framed[width=1cm,height=1cm]{S}}
\starttext
\strut
\setlayer[TA
- MWE
-
\setuppapersize[A4,landscape]
\setupexternalfigures[location={default}]
\starttext
\definelayer[LAY]%
\setlayer[LAY][x=0pt,y=-8pt]%
{%
\vbox
{%
\hsize=.35\textwidth
\externalfigure[cow][width=\hsize]%
\vskip\lineheight
\input tufte
Jon Wong schrieb am 06.12.2019 um 04:13:
\setupwhitespace[line] % A line's spacing between paragraphs.
\starttext
\definetextbackground[InfoText][
location=paragraph, frame=on]
You can't use "location=paragraph" because the argument of the \setlayer
command is a simple hori
\setupwhitespace[line] % A line's spacing between paragraphs.
\starttext
\definetextbackground[InfoText][
location=paragraph, frame=on]
\definelayer[testlayer]
\setlayer[testlayer][x=1cm,y=3cm]{%
\startInfoText
\stopInfoText
}
\flushlayer[testlayer]
\stoptext
Doesn’t work. Only works
://wiki.contextgarden.net/Drop_shadows).
Now, the background should just enclose the text, not more. Since I don’t know
how long the caption will be (I use the whole setup in a macro), I need a \vbox
within \setlayer, but that always uses the full \textwidth, regardless of width
settings of \framed
, the background should just enclose the text, not more. Since I don’t know
how long the caption will be (I use the whole setup in a macro), I need a \vbox
within \setlayer, but that always uses the full \textwidth, regardless of width
settings of \framed.
If the caption is short, the box should
=darkgray, background=color,
backgroundoffset=1mm,
backgroundcorner=round, backgroundradius=1mm,
frame=on, framecolor=black,
]
\definelayer[foo][width=\the\paperwidth, height=\the\paperheight, state=repeat]
\setlayer[foo][x=70mm, y=40mm]
{\framedclass{no style here
Henning Hraban Ramm schrieb am 13.05.2019 um 23:17:
Hai,
how must I setup layers that get repeated on every even/odd page?
Or should I use \doifoddpageelse with \setlayer?
Or do you have a different suggestion for thumb index “boxes”?
https://wiki.contextgarden.net/Thumb_index
You can also
Hai,
how must I setup layers that get repeated on every even/odd page?
Or should I use \doifoddpageelse with \setlayer?
Or do you have a different suggestion for thumb index “boxes”?
Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key
=\topspace,
width=\pagewidth,
height=\pageheight,
]
\startsetups [setupPage]
\setlayer[pageNumber]
{\hskip\leftmargindistance
\inframed[frame=off,leftframe=on,loffset=1em]{\userpage
1 - 100 of 581 matches
Mail list logo